﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GenericQueue
{
    class Program
    {
        static void Main(string[] args)
        {
            Queue<int> q = new Queue<int>(5);
            q.Push(1);
            q.Push(2);
            q.Push(3);
            q.Push(4);
            q.Push(5);
            q.Pop();
            q.Pop();
            q.Pop();
            q.Pop();
            q.Pop();
            q.Pop();
            q.Push(1);
        }
    }
}
